import Vue from 'vue'
import Router from 'vue-router' //路由模块
import Policy from './views/policy.vue' //主页组件
//import my from './views/my.vue'


//Vue.use()     添加模块，添加功能
Vue.use(Router)

//单页应用  single page app(SPA)

 let rou= new Router({
	//mode: 'history',
	//base: process.env.BASE_URL,
	routes: [ //路由配置（以往的页面）
			{
			path: '/',
			redirect: "/policy"
		},
		{
			path: '/policy', //默认路径        "/"代表默认路径     路径小写
			component:Policy, //访问到路由时,渲染的组件（页面） 
	
		},

	]
})


  export default rou